#include <func.h>

//注册两个信号的信号处理行为
void sigfunc(int signum)
{
    printf("before signum = %d is coming\n",signum);
    sleep(5);
    printf("after signum = %d is coming\n",signum);
}

int main()
{
    signal(SIGINT,sigfunc);//信号处理行为设定2号
    signal(SIGQUIT,sigfunc);//信号处理行为设定3号
    printf("process begin\n");
    while(1);
    return 0;
}